package com.test.qpbgboot.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AccountRechargeParam {
    @ApiModelProperty(value = "个人账户id")
    @NotNull(message = "个人账户id不能为空")
    private Long personalId;
    @ApiModelProperty(value = "充值金额")
    @Min(value = 5, message = "最少充值金额：5元")
    @Max(value = 1000, message = "最多充值金额：1000元")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal rechargeAmount;
}
